package top.xinsix.est.mapper;
import top.xinsix.est.dto.BrandDto;
import top.xinsix.est.pojo.Brand;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;

public interface BrandMapper {

	public Brand getBrandById(@Param(value = "id") Long id);

	public List<Brand>	getBrandListByMap(Map<String,Object> param);

	public Integer getBrandCountByMap(Map<String,Object> param);

	public Integer insertBrand(Brand brand);

	public Integer updateBrand(Brand brand);

	public Integer deleteBrandById(@Param(value = "id") Long id);

	public Integer batchDeleteBrand(Map<String,List<String>> params);

	/** .
	 *根据分类Id查询品牌列表
	 * @param classifyId 分类Id
	 * @return品牌列表.
	 */
	public List<BrandDto> findBrandDtoListByCId(@Param("classifyId")Long classifyId,@Param("status")Integer status);

}
